package com.warm.orm.eq.sys.mapper.impl;

import java.util.List;

import com.warm.orm.eq.sys.mapper.SysConfigMapper;
import org.noear.solon.annotation.Component;

import com.easy.query.api4j.client.EasyQuery;
import com.easy.query.solon.annotation.Db;
import com.warm.orm.domain.sys.SysConfig;

/**
 * @author golly_qidajb7
 * @date 2023/11/02
 */
@Component
public class SysConfigMapperImpl implements SysConfigMapper {

    @Db
    private EasyQuery easyQuery;

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#checkConfigKeyUnique(java.lang.String)
     */
    @Override
    public SysConfig checkConfigKeyUnique(String configKey) {
        // TODO Auto-generated method stub
        return null;
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#deleteConfigById(java.lang.Long)
     */
    @Override
    public int deleteConfigById(Long configId) {
        // TODO Auto-generated method stub
        return 0;
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#deleteConfigByIds(java.lang.Long[])
     */
    @Override
    public int deleteConfigByIds(Long[] configIds) {
        // TODO Auto-generated method stub
        return 0;
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#insertConfig(com.warm.select.api.orm.domain.sys.SysConfig)
     */
    @Override
    public int insertConfig(SysConfig config) {
        // TODO Auto-generated method stub
        return 0;
    }

    @Override
    public SysConfig selectConfig(SysConfig config) {

        return null;
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#selectConfigById(java.lang.Long)
     */
    @Override
    public SysConfig selectConfigById(Long configId) {
        // TODO Auto-generated method stub
        return null;
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#selectConfigList(com.warm.select.api.orm.domain.sys.SysConfig)
     */
    @Override
    public List<SysConfig> selectConfigList(SysConfig config) {
        return this.easyQuery.queryable(SysConfig.class).toList();
    }

    /* (non-Javadoc)
     * @see mapper.com.warm.orm.eq.sys.SysConfigMapper#updateConfig(com.warm.select.api.orm.domain.sys.SysConfig)
     */
    @Override
    public int updateConfig(SysConfig config) {
        // TODO Auto-generated method stub
        return 0;
    }

}
